package core.datamodel;

import java.io.Serializable;
import java.util.Date;

public class ResourceCounter implements Serializable{
	
	
		
	private long resourceId;
	private Date lastUpdate;
	private String counterName;
	private Float counterValue;
	
	private boolean newCounter;
	private boolean updateCounter;
	
	public ResourceCounter(){
		// default value
		newCounter = false;
		updateCounter=true;
	}
	
	public long getResourceId() {
		return resourceId;
	}
	public void setResourceId(long resourceId) {
		this.resourceId = resourceId;
	}
	public Date getLastUpdate() {
		return lastUpdate;
	}
	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}
	public String getCounterName() {
		return counterName;
	}
	public void setCounterName(String counterName) {
		this.counterName = counterName;
	}
	public Float getCounterValue() {
		return counterValue;
	}
	public void setCounterValue(Float counterValue) {
		this.counterValue = counterValue;
	}

	public boolean isNewCounter() {
		return newCounter;
	}

	public void setNewCounter(boolean newCounter) {
		this.newCounter = newCounter;
	}

	public boolean isUpdateCounter() {
		return updateCounter;
	}

	public void setUpdateCounter(boolean updateCounter) {
		this.updateCounter = updateCounter;
	}
	
	
}
